package com.example.village.dao;

import com.example.village.entity.NeighbourhoodEntity;
import com.example.village.entityVO.UserVO;
import org.apache.catalina.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

@Mapper
@Component
public interface NeighbourhoodDao {

    List<NeighbourhoodEntity> queryByDim(@Param("word") String word);

    List<NeighbourhoodEntity> selectByParam(NeighbourhoodEntity neighbourhoodEntity);

    int insert(NeighbourhoodEntity neighbourhoodEntity);

    int update(NeighbourhoodEntity neighbourhoodEntity);

    int delete(@Param("id") Integer id);

    int deleteMore(@Param("ids") List<Integer> ids);

    List<UserVO> querySelect();

    NeighbourhoodEntity queryById(@Param("id") Integer id);

    List<UserVO> querySelectParam(@Param("param") String param);
}
